import {
  ShapeCustomizationManagementModel,
  ShapeStyleValue
} from "@/modules/model/modals/shapeCustomization/ShapeCustomizationManagementModel";
import { markRaw } from "vue";
import NumberInputComps from "@/modules/model/modals/shapeCustomization/comps/valueComps/NumberInputComps.vue";

export const valueCompsMap = {
  priority: markRaw(NumberInputComps)
};

export const shapeStyleInfo: ShapeStyleValue[] = [
  {
    enName: "Priority",
    enTips: "",
    key: "priority",
    name: "优先级",
    value: 1
  }
];

export class ShapeStylePriorityModel {
  shapeStyleInfo = shapeStyleInfo;

  constructor(public shapeCustomizationManagementModel: ShapeCustomizationManagementModel) {}

  initShapePriorityConfig(val) {
    this.shapeStyleInfo[0].value = val;
  }
}
